package com.jsmtr.rms.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "HR_User")
public class HRUsers {

    @Id
    @Column(nullable = false, length = 50)
    private String id; // id

    @Column(nullable = false, length = 11)
    private String tel; // 手机号

    @Column(nullable = false, length = 20)
    private String ucode; // 身份证号

    @Column(nullable = false, length = 20)
    private String uname; // 真实姓名

    @Column(nullable = false, length = 50)
    private String uemail; // 邮箱地址

    @Column(nullable = false, length = 32)
    private String upwd; // 登录密码

    @Column(nullable = false)
    private Integer ustate; // 用户状态

    @Column(nullable = false)
    private Date addtime; // 注册时间

    @Column(nullable = true)
    private Date logintime; // 最近登录时间

    @Column(nullable = true, length = 50)
    private String loginip; // 最近登录IP

    @Column(nullable = false)
    private Integer hasresume; // 是否创建了简历

    @Column(nullable = true, length = 4)
    private String isblack; // 是否加入黑名单

    @Column(nullable = true, length = 200)
    private String blackreason; // 加入黑名单原因

    @Column(nullable = true)
    private Date blacktime; // 加入黑名单原因

    @Column(name = "answer_results", nullable = false)
    private Integer answerResults; //答题结果

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public String getUcode() {
        return ucode;
    }

    public void setUcode(String ucode) {
        this.ucode = ucode;
    }

    public String getUname() {
        return uname;
    }

    public void setUname(String uname) {
        this.uname = uname;
    }

    public String getUemail() {
        return uemail;
    }

    public void setUemail(String uemail) {
        this.uemail = uemail;
    }

    public String getUpwd() {
        return upwd;
    }

    public void setUpwd(String upwd) {
        this.upwd = upwd;
    }

    public Integer getUstate() {
        return ustate;
    }

    public void setUstate(Integer ustate) {
        this.ustate = ustate;
    }

    public Date getAddtime() {
        return addtime;
    }

    public void setAddtime(Date addtime) {
        this.addtime = addtime;
    }

    public Date getLogintime() {
        return logintime;
    }

    public void setLogintime(Date logintime) {
        this.logintime = logintime;
    }

    public String getLoginip() {
        return loginip;
    }

    public void setLoginip(String loginip) {
        this.loginip = loginip;
    }

    public Integer getHasresume() {
        return hasresume;
    }

    public void setHasresume(Integer hasresume) {
        this.hasresume = hasresume;
    }

    public String getIsblack() {
        return isblack;
    }

    public void setIsblack(String isblack) {
        this.isblack = isblack;
    }

    public String getBlackreason() {
        return blackreason;
    }

    public void setBlackreason(String blackreason) {
        this.blackreason = blackreason;
    }

    public Date getBlacktime() {
        return blacktime;
    }

    public void setBlacktime(Date blacktime) {
        this.blacktime = blacktime;
    }

    public Integer getAnswerResults() {
        return answerResults;
    }

    public void setAnswerResults(Integer answerResults) {
        this.answerResults = answerResults;
    }
}